package com.example.photoview;

import java.util.Comparator;

public class SortByDate implements Comparator<ImageModel> {
    @Override
    public int compare(ImageModel o1, ImageModel o2) {
        return Long.compare(o1.getImageDate(), o2.getImageDate());
    }
}
